<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="common.jsp"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<script type="text/javascript"  src="/static/views/department.js"></script>
<!DOCTYPE html>
<head>
    <title>部门信息</title>
</head>
<body>
      <table id="department_datagrid"></table>
      <div id="department_datagrid_Btn">
        <div>

            <a class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="department_add()">新增</a>
            <a class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="department_edit()">编辑</a>
            <a class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="department_remove()">删除</a>
            <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" onclick="department_reload()">刷新</a>
            <div>
                <input id="searchBtn" class="easyui-textbox" data-options="buttonText:'搜索',prompt:'部门编号,部门名称',width:300,label:'关键字:'">
            </div>
        </div>
      </div>
    <%--表单对话框--%>
    <div id="department_dialog">
        <form id="department_form" method="post">
            <input type="hidden" name="id">
            <div align="center" style="margin-top:10px">
                <div>
                    <input class="easyui-textbox" name="sn" data-options="label:'部门编号:',labelPosition:'top',required:true,missingMessage:'编号必填'" required>
                </div>
                <div>
                    <input class="easyui-textbox" name="name" data-options="label:'部门名称:',labelPosition:'top',required:true,missingMessage:'名称必填'" >
                </div>
            <%--定义保存取消按钮--%>
            <div id="department_dialog_bt">
                    <a class="easyui-linkbutton" iconCls="icon-save"  onclick="department_save()">保存</a>
                    <a class="easyui-linkbutton" iconCls="icon-cancel" onclick="department_cancel()">取消</a>
            </div>
            </div>
        </form>
     </div>
</body>
</html>
